# -*- coding: utf-8 -*-

# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html


class YouhuiPipeline(object):
    def process_item(self, item, spider):
        # print(item)
        # print(item['价格'])
        # 去空格和换行符
        name_list = item["商品名"].strip(" ")
        price_list = item["价格"].split()
        time_list = item["发布时间"]
        print(name_list, price_list, time_list)
